class FileSplitter
{
	string m_filePath;
	int m_fileNumber;

	ProgressBar* m_progressBar;

public:
		FileSplitter(const string& filePath, int fileNumber,ProgressBar* progressBar):
		m_filePath(filePath),
		m_fileNumber(fileNumber)
		m_progressBar(progressBar)
		{

		}

		void split()
		{
			//读取大文件

			//分批次写入
			for(int i = 0; i < fileNumber; i++)
			{

			}

		}


};




class MainForm : public Form, public IProgress
{
	TextBox* txtFilePath;
	TextBox* txtFileNumber;

	ProgressBar* progressBar; //新需求，添加文件分割进度条

public:
	void Button_Click()
	{
		string filePath = txtFilePath->getText();
		int number = atoi(txtFileNubmer -> getText().c_str());

		FileSplitter splitter(filePath, number,progressBar);

		splitter.split();
	}

	virtual void DoProgress(float value)
	{
		progressBar->setValue(value);
	}
}